﻿using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 车间管理基础输入参数
    /// </summary>
    public class BoardPlaceBaseInput
    {
        /// <summary>
        /// 车间编号
        /// </summary>
        public virtual string? PlaceNo { get; set; }
        
        /// <summary>
        /// 车间名称
        /// </summary>
        public virtual string? PlaceName { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string? Demo { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public virtual long? CreateOrgId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public virtual string? CreateOrgName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 车间管理分页查询输入参数
    /// </summary>
    public class BoardPlaceInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 车间编号
        /// </summary>
        public string? PlaceNo { get; set; }
        
        /// <summary>
        /// 车间名称
        /// </summary>
        public string? PlaceName { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string? Demo { get; set; }
        
    }

    /// <summary>
    /// 车间管理增加输入参数
    /// </summary>
    public class AddBoardPlaceInput : BoardPlaceBaseInput
    {
        /// <summary>
        /// 车间编号
        /// </summary>
        [Required(ErrorMessage = "车间编号不能为空")]
        public override string? PlaceNo { get; set; }
        
        /// <summary>
        /// 车间名称
        /// </summary>
        [Required(ErrorMessage = "车间名称不能为空")]
        public override string? PlaceName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 车间管理删除输入参数
    /// </summary>
    public class DeleteBoardPlaceInput : BaseIdInput
    {
    }

    /// <summary>
    /// 车间管理更新输入参数
    /// </summary>
    public class UpdateBoardPlaceInput : BoardPlaceBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 车间管理主键查询输入参数
    /// </summary>
    public class QueryByIdBoardPlaceInput : DeleteBoardPlaceInput
    {

    }
